#include<stdio.h>
#include<string.h>
#include<stdlib.h>

int main(int argc, char *argv[])
{
  char *a;
  char *b;
  const char *ps = "This is a string";
  const char *append = " abc";
  a = (char *)strcpy(malloc(1 + strlen(ps)),ps);
  printf("%c\n",a[0]);
  b = (char *)strcpy(malloc(1 + strlen(ps) + 10),ps);
  strcpy(b + strlen(ps),append);
  printf("%s\n",b);

  return 0;
}
